<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TMledit类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_mledit.html">TMledit</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_mledit-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TMledit类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TMledit 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_mledit.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:af9bc23415672b5a931b1778089e8d8ec"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#af9bc23415672b5a931b1778089e8d8ec">TMledit</a> (long nativeObj)</td></tr>
<tr class="separator:af9bc23415672b5a931b1778089e8d8ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0722e464223c03cf0cd6f417368c49b1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a0722e464223c03cf0cd6f417368c49b1">setReadonly</a> (boolean readonly)</td></tr>
<tr class="separator:a0722e464223c03cf0cd6f417368c49b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2e887dcb8bcc5953a13a39792b6c790"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#ad2e887dcb8bcc5953a13a39792b6c790">setFocus</a> (boolean focus)</td></tr>
<tr class="separator:ad2e887dcb8bcc5953a13a39792b6c790"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86b65665ba4365e879ab242f106e3b42"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a86b65665ba4365e879ab242f106e3b42">setWrapWord</a> (boolean wrap_word)</td></tr>
<tr class="separator:a86b65665ba4365e879ab242f106e3b42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ea15571ceb52cfa22640c37a8ba716d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a4ea15571ceb52cfa22640c37a8ba716d">setMaxLines</a> (int max_lines)</td></tr>
<tr class="separator:a4ea15571ceb52cfa22640c37a8ba716d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8aa8be69dc1dad1a41e9c118d5ac1142"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a8aa8be69dc1dad1a41e9c118d5ac1142">setInputTips</a> (String tips)</td></tr>
<tr class="separator:a8aa8be69dc1dad1a41e9c118d5ac1142"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c60172ce3b4298b15deabe2ca5e1dc5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a3c60172ce3b4298b15deabe2ca5e1dc5">setCursor</a> (int cursor)</td></tr>
<tr class="separator:a3c60172ce3b4298b15deabe2ca5e1dc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a258dfe4db9f13f8ed634a19fdee4c2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a2a258dfe4db9f13f8ed634a19fdee4c2">setScrollLine</a> (int scroll_line)</td></tr>
<tr class="separator:a2a258dfe4db9f13f8ed634a19fdee4c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a157ddef5498318de16eeb8d2bd585168"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a157ddef5498318de16eeb8d2bd585168">getReadonly</a> ()</td></tr>
<tr class="separator:a157ddef5498318de16eeb8d2bd585168"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4619a9d1f8d1b9a5a2a1f6519d47455"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#ac4619a9d1f8d1b9a5a2a1f6519d47455">getTopMargin</a> ()</td></tr>
<tr class="separator:ac4619a9d1f8d1b9a5a2a1f6519d47455"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a398e5872e1846e526a0451df1b092439"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a398e5872e1846e526a0451df1b092439">getBottomMargin</a> ()</td></tr>
<tr class="separator:a398e5872e1846e526a0451df1b092439"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3963059600c5783c1de9143dfdef20a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#ac3963059600c5783c1de9143dfdef20a">getLeftMargin</a> ()</td></tr>
<tr class="separator:ac3963059600c5783c1de9143dfdef20a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6dc3d1b1a9235cd9b75ba78645ddd5b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#ac6dc3d1b1a9235cd9b75ba78645ddd5b">getRightMargin</a> ()</td></tr>
<tr class="separator:ac6dc3d1b1a9235cd9b75ba78645ddd5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea3c36679c71463e875dc5291cb311fc"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#aea3c36679c71463e875dc5291cb311fc">getTips</a> ()</td></tr>
<tr class="separator:aea3c36679c71463e875dc5291cb311fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0e2156ce33a751dd55f6818c42e7d755"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a0e2156ce33a751dd55f6818c42e7d755">getWrapWord</a> ()</td></tr>
<tr class="separator:a0e2156ce33a751dd55f6818c42e7d755"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab92660972ff26af31b416ead9d33159f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#ab92660972ff26af31b416ead9d33159f">getMaxLines</a> ()</td></tr>
<tr class="separator:ab92660972ff26af31b416ead9d33159f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a557a575e40b2724fb75a56d924e0d310"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a557a575e40b2724fb75a56d924e0d310">getScrollLine</a> ()</td></tr>
<tr class="separator:a557a575e40b2724fb75a56d924e0d310"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a94a17def42844bb6ddf3b66ca8a92eea"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_mledit.html">TMledit</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a94a17def42844bb6ddf3b66ca8a92eea">cast</a> (long nativeObj)</td></tr>
<tr class="separator:a94a17def42844bb6ddf3b66ca8a92eea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a675afad3a4148911bc66f319248e0ad8"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a675afad3a4148911bc66f319248e0ad8">create</a> (TWidget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a675afad3a4148911bc66f319248e0ad8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a879fc486ba7bd0c532b56d71a766f140"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_mledit.html">TMledit</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_mledit.html#a879fc486ba7bd0c532b56d71a766f140">cast</a> (TWidget widget)</td></tr>
<tr class="separator:a879fc486ba7bd0c532b56d71a766f140"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>多行编辑器控件。</p>
<p>mledit_t是widget\_t的子类控件，widget_t的函数均适用于mledit_t控件。</p>
<p>在xml中使用"mledit"标签创建多行编辑器控件。如：</p>
<div class="fragment"><div class="line">*&lt;<span class="keywordtype">mledit</span> <span class="keyword">x</span>=<span class="stringliteral">&quot;c&quot;</span> <span class="keyword">y</span>=<span class="stringliteral">&quot;m&quot;</span> <span class="keyword">w</span>=<span class="stringliteral">&quot;300&quot;</span> <span class="keyword">h</span>=<span class="stringliteral">&quot;300&quot;</span> /&gt;</div>
</div><!-- fragment --><blockquote class="doxtable">
<p>更多用法请参考：[mledit.xml]( </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/mledit.xml">https://github.com/zlgopen/awtk/blob/master/demos/assets/default/raw/ui/mledit.xml</a>)</p>
<p>在c代码中使用函数mledit_create创建多行编辑器控件。如：</p>
<blockquote class="doxtable">
<p>完整示例请参考：[mledit demo]( </p>
</blockquote>
<p><a href="https://github.com/zlgopen/awtk-c-demos/blob/master/demos/mledit.c">https://github.com/zlgopen/awtk-c-demos/blob/master/demos/mledit.c</a>)</p>
<p>time_clock一般不需要设置style。 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="af9bc23415672b5a931b1778089e8d8ec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9bc23415672b5a931b1778089e8d8ec">&#9670;&nbsp;</a></span>TMledit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TMledit.TMledit </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a94a17def42844bb6ddf3b66ca8a92eea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94a17def42844bb6ddf3b66ca8a92eea">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_mledit.html">TMledit</a> awtk.TMledit.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<a id="a879fc486ba7bd0c532b56d71a766f140"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a879fc486ba7bd0c532b56d71a766f140">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_mledit.html">TMledit</a> awtk.TMledit.cast </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为mledit对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>mledit对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>mledit对象。 </dd></dl>

</div>
</div>
<a id="a675afad3a4148911bc66f319248e0ad8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a675afad3a4148911bc66f319248e0ad8">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static TWidget awtk.TMledit.create </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建mledit对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对象。 </dd></dl>

</div>
</div>
<a id="a398e5872e1846e526a0451df1b092439"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a398e5872e1846e526a0451df1b092439">&#9670;&nbsp;</a></span>getBottomMargin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TMledit.getBottomMargin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>下边距。 </p>

</div>
</div>
<a id="ac3963059600c5783c1de9143dfdef20a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3963059600c5783c1de9143dfdef20a">&#9670;&nbsp;</a></span>getLeftMargin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TMledit.getLeftMargin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>左边距。 </p>

</div>
</div>
<a id="ab92660972ff26af31b416ead9d33159f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab92660972ff26af31b416ead9d33159f">&#9670;&nbsp;</a></span>getMaxLines()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TMledit.getMaxLines </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>最大行数。 </p>

</div>
</div>
<a id="a157ddef5498318de16eeb8d2bd585168"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a157ddef5498318de16eeb8d2bd585168">&#9670;&nbsp;</a></span>getReadonly()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TMledit.getReadonly </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>编辑器是否为只读。 </p>

</div>
</div>
<a id="ac6dc3d1b1a9235cd9b75ba78645ddd5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6dc3d1b1a9235cd9b75ba78645ddd5b">&#9670;&nbsp;</a></span>getRightMargin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TMledit.getRightMargin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>右边距。 </p>

</div>
</div>
<a id="a557a575e40b2724fb75a56d924e0d310"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a557a575e40b2724fb75a56d924e0d310">&#9670;&nbsp;</a></span>getScrollLine()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TMledit.getScrollLine </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>鼠标一次滚动行数。 </p>

</div>
</div>
<a id="aea3c36679c71463e875dc5291cb311fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea3c36679c71463e875dc5291cb311fc">&#9670;&nbsp;</a></span>getTips()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TMledit.getTips </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>输入提示。 </p>

</div>
</div>
<a id="ac4619a9d1f8d1b9a5a2a1f6519d47455"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4619a9d1f8d1b9a5a2a1f6519d47455">&#9670;&nbsp;</a></span>getTopMargin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TMledit.getTopMargin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>上边距。 </p>

</div>
</div>
<a id="a0e2156ce33a751dd55f6818c42e7d755"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0e2156ce33a751dd55f6818c42e7d755">&#9670;&nbsp;</a></span>getWrapWord()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.TMledit.getWrapWord </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否自动折行。 </p>

</div>
</div>
<a id="a3c60172ce3b4298b15deabe2ca5e1dc5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c60172ce3b4298b15deabe2ca5e1dc5">&#9670;&nbsp;</a></span>setCursor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setCursor </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cursor</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器光标位置。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cursor</td><td>光标位置。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad2e887dcb8bcc5953a13a39792b6c790"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2e887dcb8bcc5953a13a39792b6c790">&#9670;&nbsp;</a></span>setFocus()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setFocus </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>focus</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置为焦点。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">focus</td><td>是否为焦点。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a8aa8be69dc1dad1a41e9c118d5ac1142"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8aa8be69dc1dad1a41e9c118d5ac1142">&#9670;&nbsp;</a></span>setInputTips()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setInputTips </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>tips</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器的输入提示。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">tips</td><td>输入提示。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a4ea15571ceb52cfa22640c37a8ba716d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ea15571ceb52cfa22640c37a8ba716d">&#9670;&nbsp;</a></span>setMaxLines()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setMaxLines </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>max_lines</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器的最大行数。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">max_lines</td><td>最大行数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a0722e464223c03cf0cd6f417368c49b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0722e464223c03cf0cd6f417368c49b1">&#9670;&nbsp;</a></span>setReadonly()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setReadonly </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>readonly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器是否为只读。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">readonly</td><td>只读。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a2a258dfe4db9f13f8ed634a19fdee4c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a258dfe4db9f13f8ed634a19fdee4c2">&#9670;&nbsp;</a></span>setScrollLine()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setScrollLine </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>scroll_line</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器滚动速度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">scroll_line</td><td>滚动行数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a86b65665ba4365e879ab242f106e3b42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86b65665ba4365e879ab242f106e3b42">&#9670;&nbsp;</a></span>setWrapWord()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TMledit.setWrapWord </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>wrap_word</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置编辑器是否自动折行。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">wrap_word</td><td>是否自动折行。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TMledit.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
